function foo(a){
    console.log(a,b)
}
var b=2
foo()